import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 引入全局过滤器
import * as filters from '@/filters'

// 全局注册过滤器
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

Vue.config.productionTip = false
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI, { size: 'small' })

// 引入css
import './assets/css/index.scss'
// 引入权限文件
import './permission'

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
